package com.yx.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yx.system.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/** 角色与菜单对应关系 Mapper 接口
 * Created by wuye on 2017/11/24.
 */
@Mapper
@Repository
public interface SysRoleMenuDao extends BaseMapper<SysRoleMenu> {

    /**
     * 根据角色ID，获取菜单ID列表
     */
    List<Long> queryMenuIdList(Long roleId);

    void save(Map<String, Object> map);

    void deleteByRoleId(Long roleId);

}
